<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>【xxx】后台管理</title>
    <link rel="stylesheet" href=" __CONTROL_TPL__/css/add.css">
    <script src="__CONTROL_TPL__/js/jquery-1.7.2.min.js"></script>
    <hdui/>
    <script  type="text/javascript">
        $(function(){
            $(document).ready(function(){
                $("#right .art-lisi table tbody tr").removeClass("row_bg");
                $("#right .art-lisi table tbody tr:even").addClass("row_bg");
            })

            $('.checkbox').click(function(){
                if($(this).val()==0){
                    $(".action").hide();
                };
                if($(this).val()==1){
                     $(".action").show();
                }
            })
        })
    </script>
</head>
<body>
    <div id="admin">                     
        <div id="right">
            <div class="M-articless">
                <div class="top_box">
                    <h3>添加顶级栏目</h3>
                </div>
                <div class="art-lisi">
                    <!-- <div class="forMsg">操作成功信息</div> -->
                    <form action="{|U:'Category/add'}" method="post">
                        <input type="hidden" name="pid" value="{$hd.get.pid|default:0}">
                        <input type="hidden" name="level" value="{$hd.get.level|default:0}"/>
                        <ul>
                            <li>
                                <span >栏目名称</span>
                                <input name="cname" class="title" type="text">
                            </li>
                            <li>
                                <span >显示方式</span> 
                                <label>
                                    <input class="checkbox" name="cat_type" value="1" type="radio" checked="checked">
                                    普通栏目
                                </label> 

                                <label>
                                    <input class="checkbox" name="cat_type" value="0" type="radio" >
                                    封面栏目
                                </label> 
                            </li>
                            <li class="action ">
                                <span >商品类型</span>
                                <select class="category" name="goods_type_gt_id">
                                    <option value="0">商品类型</option>
                                    <list from='$field' name='$f'>
                                    <option value="{$f.gt_id}">{$f.gtname}</option>
                                    </list>
                                </select>
                            </li>
                            <li>
                                <span>关键字</span>
                                <input class="keyWs" name="keywords" type="text">
                            </li>
                            
                            <li>
                                <span >描述</span>
                                <textarea name="description" class="txt"></textarea>
                            </li>                        
                            <li>
                                <input class="btn" type="submit" value="添加">
                            </li>
                        </ul>
                    </form>
                </div>
            </div>
        </div>       
    </div>
</body>
</html>